<%@ page language="java" pageEncoding="UTF-8"%>
<html>
<h1>登陆页面</h1>
<body>
<h2>欢迎!</h2>
<form action="/system/login.do" method="post">
    <input type="text" name="userName" title="请输入用户名"/>
    <input type="password" name="password"/>
    <input type="submit" value="提交" />
    <input type="button" value="注册" onclick="register()"/>
</form>
<div></div>
<form action="http://localhost:8080/file/testUploadFile" method="POST" enctype="multipart/form-data">
    <p>单文件上传：</><br/>
    <input type="file" name="file1"/>
    <input type="submit" value = "上传"/>
</form>
<form method="POST" enctype="multipart/form-data"
      action="http://localhost:8080/file/upload">
    <p>多文件上传：<p/>
    <p>文件1：<input type="file" name="file" /></p>
    <p>文件2：<input type="file" name="file" /></p>
    <p><input type="submit" value="上传" /></p>
</form>
</body>
    <script type="application/javascript">
        function register() {
            window.location.href="/register.jsp";
        }
    </script>
</html>
